home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The CICA Windows Explosion!
/
The CICA Windows Explosion! - Disc 2.iso
/
demo
/
pwrtcp11.exe
/
TNTSAMPL.HP_
/
TNTSAMPL.bin
Wrap
Text File
|
1994-09-01
|
866b
|
24 lines
// TNTC.HPP
// provides C to CPP interface for TELNET protocol
class CMyPowerTelnet : public CPowerTelnet
// CPowerTelnet is the C++ class that provides TELNET processing
{
private:
public:
HWND hWnd;
// constructor to create a session object that is not connected yet
CMyPowerTelnet(HINSTANCE);
~CMyPowerTelnet(void);
// informs us that comm is open
void ConnectEvent (LPCSTR RemoteDotAddr,
WORD RemotePort, LPCSTR LocalDotAddr, WORD LocalPort,
LPCSTR LocalName);
// informs us that data has been received
void TelnetRecvEvent (LPVOID Data, size_t Cnt);
// informs us that a TELNET option has arrived
void TelnetCmdEvent (BYTE Cmd, BYTE Option, LPBYTE SubOption, size_t SubOptionCnt);
// informs us of an exception...may prompt us to close the connection
void ExceptionEvent (PT_EXCEPTION Error, LPCSTR ErrorDesc);
};